package com.zhang.yygh.hosp.utils;

import java.util.HashMap;
import java.util.Map;

public class HttpRequestHelper {

    public static Map<String,Object> switchMap(Map<String,String[]> map){
        Map<String, Object> result = new HashMap<>();
        for (Map.Entry<String, String[]> entry : map.entrySet()) {
            String key= entry.getKey();
            Object value=entry.getValue()[0];
            result.put(key, value);
        }
        return result;
    }
}
